<%@ page import="com.conversationboard.config.*" %>
<%@ page import="com.conversationboard.model.*" %>
<%@ page import="com.conversationboard.view.*" %>
<%@ page import="com.conversationboard.batch.jobs.stats.*" %>

<%@page pageEncoding="UTF-8"%>
<%@page contentType="text/html;charset=UTF-8"%>

<%
	StatsOutput statsOutput = (StatsOutput) request.getAttribute("stats");
%>

<html>

<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
	<title>Statistics</title>
	<link rel="stylesheet" type="text/css" href="<%=Configuration.getInstance().getRoot()%>/Stylesheets/<%=StyleSheets.getStyleSheetFileName(request.getCookies())%>">
</head>

<body>

	<div class="headingblock">
		<h1>Statistics</h1>
		
		<div class="mainblock">
		
			<div class='threecolumn'>
			
				<table>
					<tr>
						<td valign="top" align="center">
							<%= StatsDisplay.displayTopPostersThisMonth(statsOutput) %>
							<%= StatsDisplay.displayTopPostersOfAllTime(statsOutput) %>
						</td>
						<td valign="top" align="center">
							<%= StatsDisplay.displayMostPopularThreads(statsOutput) %>
							<%= StatsDisplay.displayPostsPerMonth(statsOutput) %>
						</td>
						<td valign="top" align="center">
							<%= StatsDisplay.displayThreadsPerBoard(statsOutput) %>
							<%= StatsDisplay.displayThreadStarters(statsOutput) %>
						</td>
					</tr>
				</table>
				
				<p>Job took <%=StatsDisplay.displayProcessingTime(statsOutput) %> to process.</p>
			</div>
			
		</div>
		
	</div>

	<!--<script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script>-->
	<!--<script type="text/javascript">_uacct = "UA-1148679-1";urchinTracker();</script>--> 

</body>
</html>
